const baseApi = '/optimus-api/api/v1'

// 营销中心
export const MARKING_CENTER = '/guoke-deepexi-marking-center/api/v1'
export const MARKING_CENTER_V2 = '/guoke-deepexi-marking-center/api/v2'
// 企业实名认证查询
export const enterpriseQuery = `${MARKING_CENTER}/mcPolicyInfo/queryCompanyCertification`
// 企业实名认证申请接口
export const companyCertification = `${MARKING_CENTER}/mcPolicyInfo/applyCompanyCertification`
// 个人实名认证申请接口
export const personCertification = `${MARKING_CENTER}/mcPolicyInfo/applyPersonalCertification`
// 个人实名认证查询接口
export const personQuery = `${MARKING_CENTER}/mcPolicyInfo/queryPersonalCertification`
// 受邀方签章
export const invitedElectronicStamp = `${MARKING_CENTER}/doElectronicStamp`
// 查询政策文本签署状态
export const queryStampStatus = `${MARKING_CENTER}/queryStampStatus`

// 政策管理
export const importBatchPolicyFile = `${MARKING_CENTER}/importFile`
// 批量生成政策
export const generatePolicy = `${MARKING_CENTER}/savePolicy`
// 获取政策模板
export const policyFinalTemplate = `${MARKING_CENTER}/policyBatch/findPolicyText`
// 取消批量政策
export const cancelBatchPolicy = `${MARKING_CENTER}/policyBatch/deletePolicyBatch`
// 批量下发
export const batchIssue = `${MARKING_CENTER}/policyBatch/batchIssuePolicy`
// 更新政策须知
export const updateNote = `${MARKING_CENTER}/policyBatch/updatePolicySignNotesByPolicyId`
// 政策结果下发-新增页面-政策编号查询
export const getPolicyCode = `${MARKING_CENTER}/policyResultIssued/policyCode`
// 根据政策结果id查看政策结果
export const getPolicyAwardDetail = `${MARKING_CENTER}/mcPolicyResultReceive/findPolicyResultReceiveById`
// 根据政策ID查询政策详情
export const getPolicyDetail = `${MARKING_CENTER}/mcPolicyInfo/queryPolicyInfoById`
// 政策接收 文本盖章
export const receptionPolicyStamp = `${MARKING_CENTER}/policyText`
// 政策结果下发新增(保存功能)、下发
export const policyResultIssued = `${MARKING_CENTER}/policyResultIssued`
export const policyResultIssuedAndSend = `${MARKING_CENTER}/policyResultIssued/addPolicyResultAndSend`
// 政策结果下发草稿状态修改(保存功能)、下发
export const policyResultRepair = `${MARKING_CENTER}/policyResultIssued/policyResult`
export const policyResultRepairAndSend = `${MARKING_CENTER}/policyResultIssued/policyResultIssued`
// 政策结果下发线下盖章接口
export const policyAwardOfflineStamp = `${MARKING_CENTER}/mcPolicyResultReceive/editDocStatus/seal`
// 子政策撤回和下发
export const updateSonPolicy = `${MARKING_CENTER}/mcPolicyInfo/updateSonPolicy`
// 子政策启用
export const startSonPolicy = `${MARKING_CENTER}/temp/McPolicyTemp/start`
// 子政策禁用
export const stopSonPolicy = `${MARKING_CENTER}/temp/McPolicyTemp/stop`
// 政策结果下发撤回（甲方）
export const policyAwardRecall = `${MARKING_CENTER}/mcPolicyResultReceive/editDocStatus/recall`
export const getPolicy = `${MARKING_CENTER}/mcPolicyInfo/queryMainPolicyPage`
export const getSinglePolicy = `${MARKING_CENTER}/mcPolicyInfo/queryPolicyInfoById`
export const getProcess = `${MARKING_CENTER}/processDetail/list`
// 政策结果下发-新增-政策编号查询政策对象
export const getPolicyObjectOptions = `${MARKING_CENTER}/policyResultIssued/policyObject`
// 查询企业和经销商
// export const companyPullDownList = `${PRODUCT_CENTER}/company/findCompanyPullDownLists`
export const companyPullDownList = `${MARKING_CENTER}/findCompanyPullDownLists`
// 新增
export const addPolicyInfo = `${MARKING_CENTER}/mcPolicyInfo/addPolicyInfo`
// 修改
export const updatePolicyInfo = `${MARKING_CENTER}/mcPolicyInfo/saveUpdatePolicyInfo`
// 下发
export const issuePolicy = `${MARKING_CENTER}/mcPolicyInfo/issuePolicy`

//  产品管理

// 子政策下发和政策接收查询列表
export const policyGetList = MARKING_CENTER + '/mcPolicyInfo/querySonPolicyPage'
// 获取产品区域详情
export const getPolicyAreaById = MARKING_CENTER + '/authProduct/list'
// 再次下发给经销商
export const issueAfterSave = MARKING_CENTER + '/mcPolicyInfo/issueAfterIssue'
// 删除主政策
export const deletePolicy = MARKING_CENTER + '/mcPolicyInfo/deletePolicyInfo'
// 政策结果接收查询列表
export const getPolicyResultList = MARKING_CENTER + '/mcPolicyResultReceive/queryResultReceiveList'
// 政策结果下发查询列表
export const policyResultIssuePage = MARKING_CENTER + '/mcPolicyResultReceive/queryResultIssuePage'
// 政策中的所有流程记录
export const getProcessDetailsByParams = MARKING_CENTER + '/processDetail/list'
// 政策产品范围(根据政策id查询授权产品)   不确定
// export const getAuthProductsByParams = PRODUCT_CENTER + '/policy/queryAuthProductsByParams'
export const getAuthProductsByParams = MARKING_CENTER + '/authProduct/list'

// 子政策政策范围
export const getPolicyAreasByParams = MARKING_CENTER + '/policyArea/list'
// 政策和政策结果邮寄记录
export const getPageOfflineRecord = MARKING_CENTER + '/offlineRecord/page'
// 政策终止
export const stopPolicyInfo = MARKING_CENTER + '/mcPolicyInfo/stopPolicyInfo'
// 政策结果、批量下发-删除（只删除草稿状态的）
export const deletePolicyResultIssued = MARKING_CENTER + '/policyResultIssued'
// 政策结果批量下发
export const batchSendPolicyResult = MARKING_CENTER + '/policyResultIssued/sendPolicyResult'
// 政策模板/新增/上传
export const policeTempFileUpload = '/guoke-channel-aggregation-center/api/v1/files/upload'
// 政策模板/新增/保存模板变量
export const policeTempVarSave = MARKING_CENTER + '/temp/McPolicyTemp/save'
// 邮寄记录保存和发送
export const addPolicyResult = MARKING_CENTER + '/offlineRecord'

// 批量生成政策结果导入
export const importPolicyResult = MARKING_CENTER + '/imporPolicyResult'
// 查询政策结果模板列表
export const policyResultTemplate = MARKING_CENTER + '/policy/policyResultTemplate/pageList'

// 批量生成政策结果文件接口
export const policyResultBatch = MARKING_CENTER + '/policyResultBatch'
// 批量政策查询生成后的结果
export const findAllPolicyText = MARKING_CENTER + '/policyBatch/findAllPolicyText'
// 批量政策结果下发
export const batchIssuePolicyResult = MARKING_CENTER + '/policyBatch/batchIssuePolicyResult'
// 批量政策结果取消
export const deletePolicyResultBatch = MARKING_CENTER + '/policyBatch/deletePolicyResultBatch'
// 批量政策结果修改须知模板信息
export const updatePolicyResultSignNotesByPolicyId = MARKING_CENTER + '/policyBatch/updatePolicyResultSignNotesByPolicyId'
// 政策模板相关
// 查询政策模板列表(post)
export const policyTemplatePageList = `${MARKING_CENTER}/policy/policyTemplate/pageList`
export const policyTemplatePageListNew = `${MARKING_CENTER}/temp/McPolicyTemp/pageList`
// 政策模板变量/上传
export const policyTemplateUpload = `${MARKING_CENTER}/temp/McPolicyTempVariable/getTempVariableList`
// 政策模板变量/查询列表
export const policyTemplateVarList = `${MARKING_CENTER}/temp/McPolicyTempVariable/pageList`
// 新建政策模板(post)
// export const policyTemplateSave = `${MARKING_CENTER}/policy/policyTemplate/save`
export const policyTemplateSave = `${MARKING_CENTER}/temp/McPolicyTemp/save`
// 新建政策模板/设置/选择
export const policyTempChange = `${MARKING_CENTER}/result/McPolicyVariable/getPolicyTemp`
// 修改政策模板（put）/{id}
// export const policyTemplateUpdate = `${MARKING_CENTER}/policy/policyTemplate/update/`
export const policyTemplateUpdate = `${MARKING_CENTER}/temp/McPolicyTemp/update/`
// 删除政策模板（delete）{id}
// export const policyTemplateDelete = `${MARKING_CENTER}/policy/policyTemplate/delete/`
export const policyTemplateDelete = `${MARKING_CENTER}/temp/McPolicyTemp/deleteById`
// 根据id查询政策模板(get){id}
// export const policyTemplateGetById = `${MARKING_CENTER}/policy/policyTemplate/getById/`
export const policyTemplateGetById = `${MARKING_CENTER}/temp/McPolicyTemp/getById`
// 政策结果模板相关
// 查询政策结果模板列表(post)
export const policyResultTemplatePageList = `${MARKING_CENTER}/policy/policyResultTemplate/pageList`
// 新建政策结果模板(post)
export const policyResultTemplateSave = `${MARKING_CENTER}/policy/policyResultTemplate/save`
// 修改政策结果模板（put）/{id}
export const policyResultTemplateUpdate = `${MARKING_CENTER}/policy/policyResultTemplate/update/`
// 删除政策结果模板（delete）{id}
export const policyResultTemplateDelete = `${MARKING_CENTER}/policy/policyResultTemplate/delete/`
// 根据id查询政策结果模板(get){id}
export const policyResultTemplateGetById = `${MARKING_CENTER}/policy/policyResultTemplate/getById/`

// 运营管理中心-政策开关设置接口-查询企业开关信息
export const McPolicySwitchEnterpriseGet = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/enterprise`
// 运营管理中心-政策开关设置接口-设置开关时长
export const McPolicySwitchEnterpriseSave = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/enterpriseOnOff`
// 运营管理中心-政策开关设置接口-根据主键查询
export const McPolicySwitchGet = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/getById`
// 运营管理中心-政策开关设置接口-查询平台开关信息
export const McPolicySwitchPlatformGet = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/platform`
// 运营管理中心-政策开关设置接口-设置平台开关时长
export const McPolicySwitchPlatformSave = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/platformOnOff`
// 运营管理中心-政策开关设置接口-新建保存
export const McPolicySwitchSave = `${MARKING_CENTER_V2}/pojo/McPolicySwitchConfig/save`

// 运营管理中心-政策文件控制配置表接口-主键查询
export const McPolicyOptConfigGet = `${MARKING_CENTER_V2}/pojo/McPolicyOptConfig/getById`
// 运营管理中心-政策文件控制配置表接口-批量保存
export const McPolicyOptConfigSaveBacth = `${MARKING_CENTER_V2}/pojo/McPolicyOptConfig/insertBatch`
// 运营管理中心-政策文件控制配置表接口-查询列表
export const McPolicyOptConfigPageList = `${MARKING_CENTER_V2}/pojo/McPolicyOptConfig/pageList`
// 运营管理中心-政策文件控制配置表接口-新建保存
export const McPolicyOptConfigSave = `${MARKING_CENTER_V2}/pojo/McPolicyOptConfig/save`
// 运营管理中心-政策文件控制配置表接口-新建更新
export const McPolicyOptConfigUpdateBacth = `${MARKING_CENTER_V2}/pojo/McPolicyOptConfig/updateBatch`

// 运营管理中心/政策配置-政策配置表接口-查询企业配置列表
export const McPolicyConfigEnterprisePageList = `${MARKING_CENTER_V2}/pojo/McPolicyConfig/enterpriseList`
// 运营管理中心/政策配置-政策配置表接口-主键查询 -- 暂时不可用 2020/04/05
export const McPolicyConfigGetById = `${MARKING_CENTER_V2}/pojo/McPolicyConfig/getById`
// 运营管理中心/政策配置-政策配置表接口-查询平台配置列表
export const McPolicyConfigPlatformPageList = `${MARKING_CENTER_V2}/pojo/McPolicyConfig/pageList`
// 运营管理中心/政策配置-政策配置表接口-新建报存
export const McPolicyConfigSave = `${MARKING_CENTER_V2}/pojo/McPolicyConfig/save`
// 运营管理中心/政策配置-政策配置表接口-批量更新
export const McPolicyConfigUpdateBatch = `${MARKING_CENTER_V2}/pojo/McPolicyConfig/updateBatch`

// 运营管理中心/政策配置-公司配置列表查询
export const McPolicyConfigCompanyList = `${MARKING_CENTER_V2}/pojo/getCompany/getByCompanyList`

// 经销商字典-批量删除
export const distributorDictionaryDel = `${MARKING_CENTER_V2}/McPolDistributorDictionary/deleteByIds`
// 经销商字典-字典导出
export const distributorDictionaryExport = `${MARKING_CENTER_V2}/McPolDistributorDictionary/exportDistributorDictionaryExcel`
// 经销商字典-主键查询
export const distributorDictionaryGetById = `${MARKING_CENTER_V2}/McPolDistributorDictionary/getById`
// 经销商字典-列表
export const distributorDictionaryList = `${MARKING_CENTER_V2}/McPolDistributorDictionary/pageList`
// 经销商字典-新建
export const distributorDictionarySave = `${MARKING_CENTER_V2}/McPolDistributorDictionary/save`
// 经销商字典-导入
export const distributorDictionaryImport = `${MARKING_CENTER_V2}/McPolDistributorDictionary/uploadDistributorDictionaryExcel`

// 导入任务表接口--经销商字典-导入状态
export const getPolImportTask = `${MARKING_CENTER_V2}/pol/McPolImportTask/getPolImportTask`

// 政策二期详情接口-根据政策id查询政策基本信息
export const findPolBaseInfo = `${MARKING_CENTER}/pol/policyFollowUpDetail/findPolBaseInfo`

// 政策二期详情接口-根据政策id查询政策须知
export const findPolNotice = `${MARKING_CENTER}/pol/policyFollowUpDetail/findPolNotice`

// 政策二期详情接口-根据政策id查询时间轴T1
export const findTimeLine = `${MARKING_CENTER}/pol/policyFollowUpDetail/findTimeLine`

// 政策二期详情接口-根据政策id查询政策详情的线下盖章
export const findUnderSeal = `${MARKING_CENTER}/pol/policyFollowUpDetail/findUnderSeal`

// 政策二期详情接口-根据政策id查询政策详情的线下盖章
export const findT1PolicyRangeList = `${MARKING_CENTER}/pol/policyFollowUpDetail/findT1PolicyRangeList`

// 政策二期详情接口-上传文件按钮
export const lineLowerSeal = `${MARKING_CENTER_V2}/pol/McPolPlat/linelowerSeal`

// 政策结果-详情-政策须知
export const policyResultDetailFindPolNotice = `${MARKING_CENTER_V2}/pol/policyResultDetail/findPolNotice`

// 政策结果-详情-基本信息
export const policyResultDetailFindPolBaseInfo = `${MARKING_CENTER_V2}/pol/policyResultDetail/findPolBaseInfo`

// 政策结果-详情-T1政策范围
export const policyResultDetailFindT1PolicyRangeList = `${MARKING_CENTER_V2}/pol/policyResultDetail/findT1PolicyRangeList`

// 政策结果—详情-线下盖章
export const policyResultDetailFindUnderSeal = `${MARKING_CENTER_V2}/pol/policyResultDetail/findUnderSeal`

// 政策结果-详情-电子签章红色通知单
export const policyResultDetailFindTimeLine = `${MARKING_CENTER_V2}/pol/policyResultDetail/findTimeLine`

// 政策结果-详情-上传文件
export const policyResultDetailSetUploadAgain = `${MARKING_CENTER_V2}/pol/policyResultDetail/setUploadAgain`

// 政策结果-接收-列表
export const policyResultDetailQueryPolResultListT2 = `${MARKING_CENTER_V2}/pol/policyResultDetail/queryPolResultListT2`

// 政策结果-接收-T2金额汇总和最终金额汇总
export const policyResultDetailQueryPolResultListT2Amount = `${MARKING_CENTER_V2}/pol/policyResultDetail/queryPolResultListT2Amount`
// 政策结果-接收-T2政策结果列表数量及等值金额汇总和最终金额汇总
export const policyResultDetailQueryPolResultListT2Count = `${MARKING_CENTER_V2}/pol/policyResultDetail/queryPolResultListT2Count`
// 查询政策同步数据配置信息列表
export const resMcPolicyDataSyncPageList = `${MARKING_CENTER}/res/McPolicyDataSync/pageList`
// 通过id更新政策同步数据配置
export const resMcPolicyDataSyncUpdateById = `${MARKING_CENTER}/res/McPolicyDataSync/updateById`
